function getConstantDay(list){
	let myList = list
	myList.sort((a, b) => {
		return new Date(a.date).getTime() - new Date(b.date).getTime()
	})
	let countList = []
	let currentCount = 1
	for (let i = 0; i < myList.length; i++) {
		if(i === myList.length - 1) {
			countList.push(currentCount)
			break
		}
		if(new Date(myList[i + 1].date).getTime() - new Date(myList[i].date).getTime() < 48 * 60 * 60 * 1000){
			currentCount ++
		}else{
			countList.push(currentCount)
			currentCount = 1
		}
	}
	return Math.max(...countList)
}

export default getConstantDay